package com.erb.service.hzg.impl;

import com.erb.entity.*;
import com.erb.mapper.LonsauditMapper;
import com.erb.service.hzg.lonsauditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class lonsAuditServiceImpl implements lonsauditService {
	@Autowired
	LonsauditMapper dao;

	//查看
	@Override
	public List<Map> auditlist() {
		return dao.alist();
	}

	@Override
	public void auditupd(int bts, int id) {
		dao.auditupd(bts, id);
	}

	@Override
	public int selProcount() {
		return dao.selProcount();
	}

	@Override
	public List<Loan> selApplyPage(Pager Pager) {
		return dao.selloanPage((Pager.currPage - 1) * Pager.pageSize, Pager.pageSize);
	}

	@Override
	public Loan seluid(int id) {
		return dao.seluid(id);
	}

	@Override
	public List<Carimf> idshowlist(int allr, int uid) {
		return dao.idshowlist(allr, uid);
	}

	@Override
	public List<Houseimf> Houselist(int allr, int id) {
		return dao.Houselist(allr, id);
	}

	@Override
	public void updusermoney(int id, double money) {
		dao.updusermoney(id, money);
	}

	@Override
	public LoanUser selusermoney(int id) {
		return dao.selusermoney(id);
	}
}
